/**
 * 
 */
package org.sevaapp.security.dto;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.sevaapp.exception.SevaApplicationException;

/**
 * @author Srini
 *
 */
public abstract class BaseDto {
	
	private SevaApplicationException exception;

	/**
	 * @return the exception
	 */
	public SevaApplicationException getException() {
		return exception;
	}

	/**
	 * @param exception the exception to set
	 */
	public void setException(SevaApplicationException exception) {
		this.exception = exception;
	}

	/**
	 * Method to get a String representing the current state of the DTO.
	 *
	 * @return retStr is string of fields listed in the DTO
	 */
	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

}
